package com.lanchetech.dao;
import java.util.Collection;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.bean.request.AnchorWindowsReq;import com.lanchetech.bean.vo.AnchorWindowsVO;import com.lanchetech.entity.AnchorWindows;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

@Mapper
public interface AnchorWindowsMapper {
    int deleteByPrimaryKey(@Param("id") Long id,@Param("userId") Long userId);

    int insert(AnchorWindows record);

    int insertSelective(AnchorWindows record);

    AnchorWindows selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AnchorWindows record);

    int updateByPrimaryKey(AnchorWindows record);

    List<AnchorWindowsVO> findAllPage(AnchorWindowsReq req);

    int updateHiddenById(@Param("updatedHidden")Byte updatedHidden,@Param("id")Long id);

    Long countByAnchorId(@Param("anchorId")Long anchorId);

    List<AnchorWindows> findAllBySpuIdInAndAnchorId(@Param("spuIdCollection")Collection<Long> spuIdCollection,@Param("anchorId")Long anchorId);

    AnchorWindows findOneBySpuIdAndAnchorId(@Param("spuId")Long spuId,@Param("anchorId")Long anchorId);
}